package com.credithc.signature.common.mapper;

import com.credithc.baseserv.core.mapper.BsBaseMapper;
import com.credithc.signature.common.po.SealApplyInfoDTO;
import com.credithc.signature.common.to.SealInfoDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CertInfoMapper extends BsBaseMapper<SealApplyInfoDTO> {

	/**
	 * 根据身份证号获得签名证书
	 */
	SealApplyInfoDTO getSealInfo(@Param("idTypeCode") String idTypeCode, @Param("idNo") String idNo, @Param("userName") String userName);

	SealApplyInfoDTO getSealInfo2(@Param("idTypeCode") String idTypeCode, @Param("idNo") String idNo);

	/**
	 * 根据身份证号获得未过期的签名证书
	 *
	 * @param idTypeCode
	 * @param idNo
	 * @param userName
     * @return
	 */
	SealApplyInfoDTO getUnExpireSealInfo(@Param("idTypeCode") String idTypeCode, @Param("idNo") String idNo, @Param("userName") String userName, @Param("expireTime") String expireTime);

	/**
	 * 获取公章信息
	 */
	SealApplyInfoDTO getSealInfoByCode(@Param("sealCode") String sealCode);

}
